package com.plate.modules.system.service.impl;

import com.plate.common.datasource.base.MyBaseServiceImpl;
import com.plate.modules.system.domain.po.SysRole;
import com.plate.modules.system.domain.vo.SysRoleVO;
import com.plate.modules.system.mapper.SysRoleMapper;
import com.plate.modules.system.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysRoleServiceImpl
 * @Description TODO
 * @Author jiaxd
 * @Date 2023年10月23日 22:07
 * @Version 1.0
 */

@Service
public class SysRoleServiceImpl extends MyBaseServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRoleVO> getRoleListByUserId(String userId) {
        return sysRoleMapper.getRoleListByUserId(userId);
    }

}
